package com.ose.textPlayer.plugin.pdf;


import android.graphics.RectF;

public class TextWord extends RectF {
	public String word;

	public TextWord(String word, float left, float top, float right, float bottom) {
		this.word = word;
		this.left = left;
		this.top = top;
		this.right = right;
		this.bottom = bottom;
	}
	
	public String getWord() {
		return word;
	}

	public float getRight() {
		return right;
	}

	public float getLeft() {
		return left;
	}

	public float getTop() {
		return top;
	}

	public float getBottom() {
		return bottom;
	}

	public TextWord() {
		super();
		word = new String();
	}

	public void Add(TextChar tc) {
		super.union(tc);
		word = word.concat(new String(new char[] { tc.c }));
	}
}
